package com.taobao.txc.parser.b.c;

import com.taobao.txc.common.LoggerInit;
import com.taobao.txc.common.LoggerWrap;
import com.taobao.txc.parser.struct.TxcTable;

public class c
  extends a
  implements com.taobao.txc.parser.b.a.a
{
  private static final LoggerWrap i = LoggerInit.logger;
  
  public c(k paramk)
  {
    super(paramk);
  }
  
  private com.a.a.a.a.c.c.b m()
  {
    return (com.a.a.a.a.c.c.b)((k)j()).e();
  }
  
  public void a(com.a.a.a.a.c.c.b paramb) {}
  
  public String l()
  {
    com.a.a.a.a.c.c.b localb = m();
    StringBuilder localStringBuilder = new StringBuilder();
    localStringBuilder.append(b(localb));
    com.a.a.a.a.a.c localc = localb.c();
    localStringBuilder.append(a(localc, null));
    com.a.a.a.a.b.d locald = localb.d();
    localStringBuilder.append(b(locald));
    com.a.a.a.a.b.b localb1 = localb.e();
    localStringBuilder.append(b(localb1));
    return localStringBuilder.toString();
  }
  
  public String k()
  {
    return l();
  }
  
  String b(com.a.a.a.a.b.b paramb)
  {
    StringBuilder localStringBuilder = h();
    if (paramb != null)
    {
      localStringBuilder.append(' ');
      paramb.a(this);
    }
    return localStringBuilder.toString();
  }
  
  String b(com.a.a.a.a.b.d paramd)
  {
    StringBuilder localStringBuilder = h();
    if (paramd != null)
    {
      localStringBuilder.append(' ');
      paramd.a(this);
    }
    return localStringBuilder.toString();
  }
  
  String b(com.a.a.a.a.c.c.b paramb)
  {
    StringBuilder localStringBuilder = h();
    localStringBuilder.append("DELETE ");
    if (paramb.f()) {
      localStringBuilder.append("LOW_PRIORITY ");
    }
    if (paramb.g()) {
      localStringBuilder.append("QUICK ");
    }
    if (paramb.h()) {
      localStringBuilder.append("IGNORE ");
    }
    localStringBuilder.append("FROM ");
    localStringBuilder.append(j().b());
    return localStringBuilder.toString();
  }
  
  String a(com.a.a.a.a.a.c paramc, String paramString)
  {
    StringBuilder localStringBuilder = h();
    if (paramc != null)
    {
      localStringBuilder.append(" WHERE ");
      paramc.a(this);
      if ((paramString != null) && (!paramString.isEmpty()))
      {
        localStringBuilder.append(" AND ");
        localStringBuilder.append(paramString);
      }
    }
    else if ((paramString != null) && (!paramString.isEmpty()))
    {
      localStringBuilder.append(" WHERE ");
      localStringBuilder.append(paramString);
    }
    return localStringBuilder.toString();
  }
  
  public String d(com.taobao.txc.resourcemanager.b.a.d paramd)
  {
    com.a.a.a.a.c.c.b localb = m();
    StringBuilder localStringBuilder = new StringBuilder();
    com.a.a.a.a.a.c localc = localb.c();
    localStringBuilder.append(a(localc, null));
    com.a.a.a.a.b.d locald = localb.d();
    localStringBuilder.append(b(locald));
    com.a.a.a.a.b.b localb1 = localb.e();
    localStringBuilder.append(b(localb1));
    if (i.c()) {
      i.debug("whereSqlAppender:" + localStringBuilder.toString());
    }
    return localStringBuilder.toString();
  }
  
  public TxcTable b(com.taobao.txc.resourcemanager.b.a.d paramd)
  {
    String str = g() + d(paramd) + " FOR UPDATE";
    a(a(paramd, str));
    return c();
  }
  
  public TxcTable c(com.taobao.txc.resourcemanager.b.a.d paramd)
  {
    b(i());
    return d();
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.parser.b.c.c
 * JD-Core Version:    0.7.0.1
 */